if exist "%JBOSS_HOME%\server" (
(dir "%JBOSS_HOME%\server\default\deploy\hq.ear\hq.war\hqu" | find "sophq") && rd /s/q "%JBOSS_HOME%\server\default\deploy\hq.ear\hq.war\hqu\sophq" && ping -n 5 127.0.0.1 >nul
echo d | xcopy sophq "%JBOSS_HOME%\server\default\deploy\hq.ear\hq.war\hqu\sophq" /s /e
if exist rebranding (
xcopy rebranding "%JBOSS_HOME%\server\default\deploy\hq.ear\hq.war" /y /s /e
cd lib
echo " " | call "%JBOSS_HOME%\..\..\stop_server.bat"
echo hq_jsp.jar updating
jar uf "%JBOSS_HOME%\server\default\deploy\hq.ear\hq.war\WEB-INF\lib\hq_jsp.jar" "org\apache\jsp\common\RecentAlerts_jsp.class"
echo " " | call "%JBOSS_HOME%\..\..\start_server.bat"
cd..
))
if exist "%JBOSS_HOME%\serverEE" (
(dir "%JBOSS_HOME%\serverEE\default\deploy\hq.ear\hq.war\hqu" | find "sophq") && rd /s/q "%JBOSS_HOME%\serverEE\default\deploy\hq.ear\hq.war\hqu\sophq" && ping -n 5 127.0.0.1 >nul
echo d | xcopy sophq "%JBOSS_HOME%\serverEE\default\deploy\hq.ear\hq.war\hqu\sophq" /s /e
if exist rebranding (
xcopy rebranding "%JBOSS_HOME%\serverEE\default\deploy\hq.ear\hq.war" /y /s /e
cd lib
echo " " | call "%JBOSS_HOME%\..\..\stop_server.bat"
echo hq_jsp.jar updating
jar uf "%JBOSS_HOME%\serverEE\default\deploy\hq.ear\hq.war\WEB-INF\lib\hq_jsp.jar" "org\apache\jsp\common\RecentAlerts_jsp.class"
echo " " | call "%JBOSS_HOME%\..\..\start_server.bat"
cd..
))
@echo Successfully complete!!!
